package com.qzy.demo.service.impl;

import com.qzy.demo.mapper.StudentMapper;
import com.qzy.demo.pojo.StudentPojo;
import com.qzy.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;


    @Override
    public List<StudentPojo> getAllStudents() {
        return studentMapper.queryStudents();
    }
}
